<?php

namespace Modules\Car\Http\Controllers\Api;

use App\Helpers\ResponseData;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Car\Entities\CustomerFoot;

class CustomFootController extends Controller
{
    use ResponseData;

   public function store(CustomerFoot $foot,Request $request){
       $data = $request->all();
       $foot->fill($data);
       $foot->save();

       return $this->success('保存成功');
   }
   public function update(CustomerFoot $foot,Request $request){
       $data = $foot->find($request->id);
       $data->update($request->all());
       return $this->success('修改成功');
   }

}
